\doxysection{Mag\+Logger Class Reference}
\hypertarget{class_mag_logger}{}\label{class_mag_logger}\index{MagLogger@{MagLogger}}


Mag\+Logger类用于记录日志信息.  




{\ttfamily \#include $<$logger.\+h$>$}

\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_mag_logger_af874833bef5967536c000746eed82900}{Mag\+Logger}} ()
\begin{DoxyCompactList}\small\item\em 构造函数. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_mag_logger_ad13cbdf4b33a580b1096aee2aa9a4030}{\texorpdfstring{$\sim$}{\string~}\+Mag\+Logger}} ()
\begin{DoxyCompactList}\small\item\em 析构函数. \end{DoxyCompactList}\item 
std\+::string \mbox{\hyperlink{class_mag_logger_aeca59a7fe42b816420492621efd4cbb9}{current\+Time}} ()
\begin{DoxyCompactList}\small\item\em 获取当前时间. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_mag_logger_a6403d204b8c512b93976a892499b3e0d}{set\+Debug\+Log}} (const std\+::string \&message)
\begin{DoxyCompactList}\small\item\em 记录debug级别的日志信息. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_mag_logger_a47eedafad73f4657ac4d0c4de986d26b}{set\+Info\+Log}} (const std\+::string \&message)
\begin{DoxyCompactList}\small\item\em 记录info级别的日志信息. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_mag_logger_a2f2ea25c3e78c352cf4e1a73ffc3f989}{set\+Warning\+Log}} (const std\+::string \&message)
\begin{DoxyCompactList}\small\item\em 记录warning级别的日志信息. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_mag_logger_a4e51d2bc91537cd95a0f4724d59ae0d9}{set\+Error\+Log}} (const std\+::string \&message)
\begin{DoxyCompactList}\small\item\em 记录error级别的日志信息. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_mag_logger_a5bdcc3c3fab9dfc49b6307fa7eec3a4f}{set\+Fatal\+Log}} (const std\+::string \&message)
\begin{DoxyCompactList}\small\item\em 记录fatal级别的日志信息. \end{DoxyCompactList}\item 
std\+::vector$<$ std\+::string $>$ \mbox{\hyperlink{class_mag_logger_a51168b6826dd2ada98454cdf66a0c27f}{get\+Debug\+Log}} () const
\begin{DoxyCompactList}\small\item\em 获取日志debug级别的日志信息数组. \end{DoxyCompactList}\item 
std\+::vector$<$ std\+::string $>$ \mbox{\hyperlink{class_mag_logger_a8ec666d32dcda63ee9ae17771968f3ed}{get\+Info\+Log}} () const
\begin{DoxyCompactList}\small\item\em 获取日志info级别的日志信息数组. \end{DoxyCompactList}\item 
std\+::vector$<$ std\+::string $>$ \mbox{\hyperlink{class_mag_logger_a36799c8320a4d036339ae8120054b54b}{get\+Warning\+Log}} () const
\begin{DoxyCompactList}\small\item\em 获取日志warning级别的日志信息数组. \end{DoxyCompactList}\item 
std\+::vector$<$ std\+::string $>$ \mbox{\hyperlink{class_mag_logger_af92c7ea97d022f4654095df9c0c1b3e6}{get\+Error\+Log}} () const
\begin{DoxyCompactList}\small\item\em 获取日志error级别的日志信息数组. \end{DoxyCompactList}\item 
std\+::vector$<$ std\+::string $>$ \mbox{\hyperlink{class_mag_logger_a573d53965bdd7c2440e513924e418732}{get\+Fatal\+Log}} () const
\begin{DoxyCompactList}\small\item\em 获取日志fatal级别的日志信息数组. \end{DoxyCompactList}\item 
std\+::vector$<$ std\+::string $>$ \mbox{\hyperlink{class_mag_logger_a4bace1bc22b1cbea96e9dcf18959cc57}{get\+All\+Log}} () const
\begin{DoxyCompactList}\small\item\em 获取所有级别的日志信息数组. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_mag_logger_a871395cc8d7389bdf827cc610f3c236a}{export\+Log}} (const std\+::string \&file\+Name)
\begin{DoxyCompactList}\small\item\em 输出日志信息到文件. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Mag\+Logger类用于记录日志信息. 

Mag\+Logger类用于记录日志信息, 包括debug, info, warning, error, fatal等等级别的日志信息. 日志信息会被记录到字符串数组中. 日志信息会被输出到字符串数组中, 但可以通过调用get\+Debug\+Log(), \doxylink{class_mag_logger_a8ec666d32dcda63ee9ae17771968f3ed}{get\+Info\+Log()}, \doxylink{class_mag_logger_a36799c8320a4d036339ae8120054b54b}{get\+Warning\+Log()}, \doxylink{class_mag_logger_af92c7ea97d022f4654095df9c0c1b3e6}{get\+Error\+Log()}, \doxylink{class_mag_logger_a573d53965bdd7c2440e513924e418732}{get\+Fatal\+Log()}等函数来获取日志信息. 

\doxysubsection{Constructor \& Destructor Documentation}
\Hypertarget{class_mag_logger_af874833bef5967536c000746eed82900}\label{class_mag_logger_af874833bef5967536c000746eed82900} 
\index{MagLogger@{MagLogger}!MagLogger@{MagLogger}}
\index{MagLogger@{MagLogger}!MagLogger@{MagLogger}}
\doxysubsubsection{\texorpdfstring{MagLogger()}{MagLogger()}}
{\footnotesize\ttfamily Mag\+Logger\+::\+Mag\+Logger (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



构造函数. 

构造函数, 初始化日志信息数组. \Hypertarget{class_mag_logger_ad13cbdf4b33a580b1096aee2aa9a4030}\label{class_mag_logger_ad13cbdf4b33a580b1096aee2aa9a4030} 
\index{MagLogger@{MagLogger}!````~MagLogger@{\texorpdfstring{$\sim$}{\string~}MagLogger}}
\index{````~MagLogger@{\texorpdfstring{$\sim$}{\string~}MagLogger}!MagLogger@{MagLogger}}
\doxysubsubsection{\texorpdfstring{\texorpdfstring{$\sim$}{\string~}MagLogger()}{\string~MagLogger()}}
{\footnotesize\ttfamily Mag\+Logger\+::\texorpdfstring{$\sim$}{\string~}\+Mag\+Logger (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



析构函数. 

析构函数, 释放日志信息数组. 

\doxysubsection{Member Function Documentation}
\Hypertarget{class_mag_logger_aeca59a7fe42b816420492621efd4cbb9}\label{class_mag_logger_aeca59a7fe42b816420492621efd4cbb9} 
\index{MagLogger@{MagLogger}!currentTime@{currentTime}}
\index{currentTime@{currentTime}!MagLogger@{MagLogger}}
\doxysubsubsection{\texorpdfstring{currentTime()}{currentTime()}}
{\footnotesize\ttfamily std\+::string Mag\+Logger\+::current\+Time (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



获取当前时间. 

获取当前时间, 格式为"{}\+YYYY-\/\+MM-\/\+DD HH\+:\+MM\+:\+SS"{}. \begin{DoxyReturn}{Returns}
当前时间字符串. 
\end{DoxyReturn}
\Hypertarget{class_mag_logger_a871395cc8d7389bdf827cc610f3c236a}\label{class_mag_logger_a871395cc8d7389bdf827cc610f3c236a} 
\index{MagLogger@{MagLogger}!exportLog@{exportLog}}
\index{exportLog@{exportLog}!MagLogger@{MagLogger}}
\doxysubsubsection{\texorpdfstring{exportLog()}{exportLog()}}
{\footnotesize\ttfamily void Mag\+Logger\+::export\+Log (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{file\+Name }\end{DoxyParamCaption})}



输出日志信息到文件. 

输出日志信息到文件, 文件名为"{}file\+Name.\+log"{}. 
\begin{DoxyParams}{Parameters}
{\em file\+Name} & 日志文件名. \\
\hline
\end{DoxyParams}
\Hypertarget{class_mag_logger_a4bace1bc22b1cbea96e9dcf18959cc57}\label{class_mag_logger_a4bace1bc22b1cbea96e9dcf18959cc57} 
\index{MagLogger@{MagLogger}!getAllLog@{getAllLog}}
\index{getAllLog@{getAllLog}!MagLogger@{MagLogger}}
\doxysubsubsection{\texorpdfstring{getAllLog()}{getAllLog()}}
{\footnotesize\ttfamily std\+::vector$<$ std\+::string $>$ Mag\+Logger\+::get\+All\+Log (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



获取所有级别的日志信息数组. 

获取所有级别的日志信息数组. \begin{DoxyReturn}{Returns}
所有级别的日志信息数组. 
\end{DoxyReturn}
\Hypertarget{class_mag_logger_a51168b6826dd2ada98454cdf66a0c27f}\label{class_mag_logger_a51168b6826dd2ada98454cdf66a0c27f} 
\index{MagLogger@{MagLogger}!getDebugLog@{getDebugLog}}
\index{getDebugLog@{getDebugLog}!MagLogger@{MagLogger}}
\doxysubsubsection{\texorpdfstring{getDebugLog()}{getDebugLog()}}
{\footnotesize\ttfamily std\+::vector$<$ std\+::string $>$ Mag\+Logger\+::get\+Debug\+Log (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



获取日志debug级别的日志信息数组. 

获取debug级别的日志信息数组. \begin{DoxyReturn}{Returns}
debug级别的日志信息数组. 
\end{DoxyReturn}
\Hypertarget{class_mag_logger_af92c7ea97d022f4654095df9c0c1b3e6}\label{class_mag_logger_af92c7ea97d022f4654095df9c0c1b3e6} 
\index{MagLogger@{MagLogger}!getErrorLog@{getErrorLog}}
\index{getErrorLog@{getErrorLog}!MagLogger@{MagLogger}}
\doxysubsubsection{\texorpdfstring{getErrorLog()}{getErrorLog()}}
{\footnotesize\ttfamily std\+::vector$<$ std\+::string $>$ Mag\+Logger\+::get\+Error\+Log (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



获取日志error级别的日志信息数组. 

获取error级别的日志信息数组. \begin{DoxyReturn}{Returns}
error级别的日志信息数组. 
\end{DoxyReturn}
\Hypertarget{class_mag_logger_a573d53965bdd7c2440e513924e418732}\label{class_mag_logger_a573d53965bdd7c2440e513924e418732} 
\index{MagLogger@{MagLogger}!getFatalLog@{getFatalLog}}
\index{getFatalLog@{getFatalLog}!MagLogger@{MagLogger}}
\doxysubsubsection{\texorpdfstring{getFatalLog()}{getFatalLog()}}
{\footnotesize\ttfamily std\+::vector$<$ std\+::string $>$ Mag\+Logger\+::get\+Fatal\+Log (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



获取日志fatal级别的日志信息数组. 

获取fatal级别的日志信息数组. \begin{DoxyReturn}{Returns}
fatal级别的日志信息数组. 
\end{DoxyReturn}
\Hypertarget{class_mag_logger_a8ec666d32dcda63ee9ae17771968f3ed}\label{class_mag_logger_a8ec666d32dcda63ee9ae17771968f3ed} 
\index{MagLogger@{MagLogger}!getInfoLog@{getInfoLog}}
\index{getInfoLog@{getInfoLog}!MagLogger@{MagLogger}}
\doxysubsubsection{\texorpdfstring{getInfoLog()}{getInfoLog()}}
{\footnotesize\ttfamily std\+::vector$<$ std\+::string $>$ Mag\+Logger\+::get\+Info\+Log (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



获取日志info级别的日志信息数组. 

获取info级别的日志信息数组. \begin{DoxyReturn}{Returns}
info级别的日志信息数组. 
\end{DoxyReturn}
\Hypertarget{class_mag_logger_a36799c8320a4d036339ae8120054b54b}\label{class_mag_logger_a36799c8320a4d036339ae8120054b54b} 
\index{MagLogger@{MagLogger}!getWarningLog@{getWarningLog}}
\index{getWarningLog@{getWarningLog}!MagLogger@{MagLogger}}
\doxysubsubsection{\texorpdfstring{getWarningLog()}{getWarningLog()}}
{\footnotesize\ttfamily std\+::vector$<$ std\+::string $>$ Mag\+Logger\+::get\+Warning\+Log (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



获取日志warning级别的日志信息数组. 

获取warning级别的日志信息数组. \begin{DoxyReturn}{Returns}
warning级别的日志信息数组. 
\end{DoxyReturn}
\Hypertarget{class_mag_logger_a6403d204b8c512b93976a892499b3e0d}\label{class_mag_logger_a6403d204b8c512b93976a892499b3e0d} 
\index{MagLogger@{MagLogger}!setDebugLog@{setDebugLog}}
\index{setDebugLog@{setDebugLog}!MagLogger@{MagLogger}}
\doxysubsubsection{\texorpdfstring{setDebugLog()}{setDebugLog()}}
{\footnotesize\ttfamily void Mag\+Logger\+::set\+Debug\+Log (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{message }\end{DoxyParamCaption})}



记录debug级别的日志信息. 

记录日志信息, 并将日志信息添加到日志信息数组中. 
\begin{DoxyParams}{Parameters}
{\em message} & debug级别的日志信息. \\
\hline
\end{DoxyParams}
\Hypertarget{class_mag_logger_a4e51d2bc91537cd95a0f4724d59ae0d9}\label{class_mag_logger_a4e51d2bc91537cd95a0f4724d59ae0d9} 
\index{MagLogger@{MagLogger}!setErrorLog@{setErrorLog}}
\index{setErrorLog@{setErrorLog}!MagLogger@{MagLogger}}
\doxysubsubsection{\texorpdfstring{setErrorLog()}{setErrorLog()}}
{\footnotesize\ttfamily void Mag\+Logger\+::set\+Error\+Log (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{message }\end{DoxyParamCaption})}



记录error级别的日志信息. 

记录日志信息, 并将日志信息添加到日志信息数组中. 
\begin{DoxyParams}{Parameters}
{\em message} & error级别的日志信息. \\
\hline
\end{DoxyParams}
\Hypertarget{class_mag_logger_a5bdcc3c3fab9dfc49b6307fa7eec3a4f}\label{class_mag_logger_a5bdcc3c3fab9dfc49b6307fa7eec3a4f} 
\index{MagLogger@{MagLogger}!setFatalLog@{setFatalLog}}
\index{setFatalLog@{setFatalLog}!MagLogger@{MagLogger}}
\doxysubsubsection{\texorpdfstring{setFatalLog()}{setFatalLog()}}
{\footnotesize\ttfamily void Mag\+Logger\+::set\+Fatal\+Log (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{message }\end{DoxyParamCaption})}



记录fatal级别的日志信息. 

记录日志信息, 并将日志信息添加到日志信息数组中. 
\begin{DoxyParams}{Parameters}
{\em message} & fatal级别的日志信息. \\
\hline
\end{DoxyParams}
\Hypertarget{class_mag_logger_a47eedafad73f4657ac4d0c4de986d26b}\label{class_mag_logger_a47eedafad73f4657ac4d0c4de986d26b} 
\index{MagLogger@{MagLogger}!setInfoLog@{setInfoLog}}
\index{setInfoLog@{setInfoLog}!MagLogger@{MagLogger}}
\doxysubsubsection{\texorpdfstring{setInfoLog()}{setInfoLog()}}
{\footnotesize\ttfamily void Mag\+Logger\+::set\+Info\+Log (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{message }\end{DoxyParamCaption})}



记录info级别的日志信息. 

记录日志信息, 并将日志信息添加到日志信息数组中. 
\begin{DoxyParams}{Parameters}
{\em message} & info级别的日志信息. \\
\hline
\end{DoxyParams}
\Hypertarget{class_mag_logger_a2f2ea25c3e78c352cf4e1a73ffc3f989}\label{class_mag_logger_a2f2ea25c3e78c352cf4e1a73ffc3f989} 
\index{MagLogger@{MagLogger}!setWarningLog@{setWarningLog}}
\index{setWarningLog@{setWarningLog}!MagLogger@{MagLogger}}
\doxysubsubsection{\texorpdfstring{setWarningLog()}{setWarningLog()}}
{\footnotesize\ttfamily void Mag\+Logger\+::set\+Warning\+Log (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{message }\end{DoxyParamCaption})}



记录warning级别的日志信息. 

记录日志信息, 并将日志信息添加到日志信息数组中. 
\begin{DoxyParams}{Parameters}
{\em message} & info级别的日志信息. \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
logger/include/\mbox{\hyperlink{logger_8h}{logger.\+h}}\item 
logger/logger.\+cpp\end{DoxyCompactItemize}
